package com.cjl.generic;

import java.util.ArrayList;

public class Manipulation {
    static class HasF{
        public void f(){
            System.out.println("HasF.f");
        }
    }

    static class Manipulate<T>{
        private T obj;

        public Manipulate(T obj) {
            this.obj = obj;
        }

        private void manipulate(){
//            obj.f();
        }
    }

    public static void main(String[] args) {
        HasF hasF = new HasF();

        Manipulate<HasF> manipulate = new Manipulate<HasF>(hasF);
        manipulate.manipulate();


        ArrayMaker<String> arrayList = new ArrayMaker<>(String.class);

        ArrayMaker<String> arrayList1 = new ArrayMaker<String>(String.class);

    }
}
